<?
include ('../includes/conf.php');

$sql = $HTTP_GET_VARS["query"];

	//echo $sql;

if ($result = @mysql_query($sql, $db)) {

	//echo $result;
	if ($result != "1") {
	$row = mysql_fetch_array($result);
	echo $row[0];
	} else {
		echo $result;
	}
} else {
	echo 0;
}
?>